﻿@model MvcPaging.IPagedList<SMS.Domain.Entities.Reto>

@{
    ViewBag.Title = "Retos";
}

@foreach (var p in Model) {
<div class="item">
    <img alt="Avatar de @p.UserONG.UserSMS.Nombre" src="~/io/images/@p.UserONG.UserSMS.Foto"
<h3>@p.UserONG.UserSMS.Nombre de @Html.ActionLink(p.UserONG.OngDelegacion.Ong.Nombre, "Details", "Ong", new { id = p.UserONG.OngDelegacion.OngId },null)</h3>
@Html.ActionLink(@p.Titulo,"Details","Reto",new {id=p.RetoId},null)
<h4>@p.CreateDate</h4>
</div>
}

<div class="pager">
    @Html.Pager(Model.PageSize,Model.PageNumber,Model.TotalItemCount)
</div>
